package com.example.test001.web;

import com.example.test001.dao.SysMenuMapper;
import com.example.test001.model.SysMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {


    @Autowired
    public SysMenuMapper sysMenuMapper;

    @GetMapping("/menu/test")
    public Object o(){

        List<SysMenu> sysMenus = sysMenuMapper.getAll();

        return sysMenus;
    }







}



